<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Print result as HTML table</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.odbc-procedures.html">« odbc_procedures</a></li>
      <li style="float: right;"><a href="function.odbc-result.html">odbc_result »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.uodbc.html">ODBC 函数</a></li>
    <li>Print result as HTML table</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.odbc-result-all" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">odbc_result_all</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">odbc_result_all</span> &mdash; <span class="dc-title">Print result as HTML table</span></p>

 </div>

 <div id="function.odbc-result-all-refsynopsisdiv">
  <div class="warning"><strong class="warning">警告</strong><p class="simpara">此函数自 PHP 8.1.0 
起<em class="emphasis">弃用</em>。强烈建议不要应用此函数。</p></div>
 </div>
 
 <div class="refsect1 description" id="refsect1-function.odbc-result-all-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>odbc_result_all</strong></span>(<span class="methodparam"><span class="type">resource</span> <code class="parameter">$statement</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$format</code><span class="initializer"> = &quot;&quot;</span></span>): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>

  <p class="para rdfs-comment">
   Prints all rows from a result identifier produced by
   <span class="function"><a href="function.odbc-exec.html" class="function">odbc_exec()</a></span>. The result is printed in HTML table format.
   The data is <em class="emphasis">not</em> escaped.
  </p>
  <p class="para">
   This function is not supposed to be used in production environments; it is
   merely meant for development purposes, to get a result set quickly rendered.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.odbc-result-all-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">statement</code></dt>

     <dd>

      <p class="para">
       The result identifier.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">format</code></dt>

     <dd>

      <p class="para">
       Additional overall table formatting.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.odbc-result-all-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the number of rows in the result or <strong><code>false</code></strong> on error.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.odbc-result-all-changelog">
  <h3 class="title">更新日志</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.1.0</td>
       <td>
        This function has been deprecated.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

 
</div></div></div></body></html>